package com.ctyon.netlibrary.net.revert;



import com.ctyon.netlibrary.utils.ApiConfig;

import java.io.Serializable;


/**
 * @describe：网络请求返回值
 */
public class BaseResponseEntity2 extends BaseResponseEntity {

    public int code;

    public String msg;

    public boolean success() {
        return ApiConfig.getSucceedCode() == code;
    }

    public int getTokenInvalid() {
        return ApiConfig.getInvalidateToken();
    }

    public String data;

    @Override
    public String toString() {
        return "BaseResponseEntity{" +
                "code:" + code +
                ", msg:" + msg + '\'' +
                ", data:" + data +
                '}';
    }
}
